<?php
declare (strict_types=1);

namespace app\admin\model\iot;

use app\BaseModel;

/**
 * 设备Apk管理表
 */
class DeviceApk extends BaseModel
{

    /**
     * 获取设备Apk管理列表
     * @param array $where
     * @param int $page
     * @param int $limit
     * @param string $orderby
     * @return array
     */
    public static function getList(array $where, int $page, int $limit, string $orderby = ''): array
    {
        $data = self::where($where)
            ->order($orderby)
            ->paginate(['list_rows' => $limit, 'page' => $page], false)
            ->toArray();
        return $data;
    }

}




